﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="RSSReader._testPages.WebForm2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title></title>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/TestAjax.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $(".data").hide();

            //click handler 1
            $(".head").click(function () {
                var t = $(this).next();
                showit = true;
                if (t.is(":visible")) { showit = false }
                $(".data").hide();
                if (showit) { t.slideDown(); }
            });
        });
    </script>
</head>

<body>
    <form id="form2" runat="server">
    

    <%--<div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:kaaTestDBConnectionString %>"
            SelectCommand="SELECT [Name], [RSSAddress], [Logo], [Description] FROM [sites]">
        </asp:SqlDataSource>
    </div>
    <table style="width: 70%;">
        <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <tr class="head">
                    <td>
                        <asp:Label ID="Label5" runat="server" Text='<%#Bind("Logo") %>'></asp:Label><br />
                    </td>
                    <td>
                        <h3>
                            <asp:Label ID="Label4" runat="server" Text='<%#Bind("Name") %>'></asp:Label></h3>
                    </td>
                </tr>
                <tr class="data">
                    <td colspan="2">
                        <asp:Label ID="Label6" runat="server" Text='<%#Bind("RSSAddress") %>'></asp:Label>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text='<%#Bind("Description") %>'></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>--%>
    <p id="AjaxTest1">
        Test1
    </p>
    <p id="AjaxTest2">
        Test1
    </p>
    </form>
</body>
</html>
